from rest_framework import serializers
from .models import *


class CateSer(serializers.ModelSerializer):
    class Meta:
        model = CateModel
        fields = '__all__'


class BooksSer(serializers.ModelSerializer):
    class Meta:
        model = BooksModel
        fields = '__all__'

    img=serializers.ImageField(use_url=False)
